Skip to content

Delete selected attr when clear cloned fields.#124

Open
AliLozano wants to merge 1 commit into
elo80ka:masterfrom
AliLozano:patch-1
Open

Delete selected attr when clear cloned fields.#124
AliLozano wants to merge 1 commit into
elo80ka:masterfrom
AliLozano:patch-1

Conversation

@AliLozano
Copy link
Copy Markdown

No description provided.

@AliLozano
Copy link
Copy Markdown
Author

Is test ok?, it should check if default value is cleaned, or not?.

test('Test Cloned Form SELECTs Without Blank OPTION Are Not Cleared', function (assert) {
    assert.equal($('#stacked-form .dynamic-form').size(), 1, 'One default form present.');
    assert.equal($('#stacked-form .dynamic-form:first select').val(), 'Email', 'Default SELECT element has value "Email".');
    $('#stacked-form .add-row').trigger('click');
    assert.equal($('#stacked-form .dynamic-form').size(), 2, 'Cloned form added.');
    assert.equal($('#stacked-form .dynamic-form:last select').val(), 'Email', 'Cloned SELECT element still has value "Email".');
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant